<?php
namespace forpc\controllers;


use Yii;
use common\components\Controller;
use common\models\Word;

/**
 * Site controller
 */
class TestController extends Controller{


    /**
     * Displays homepage.
     *
     * @return mixed
     */
    public function actionIndex(){
        $db = Yii::$app->db;


        try{
            $a = Word::synYoudao('dddsf');
        }catch(\Exception $e){
            print_r($e->getMessage());
        }


        print_r($a);

    }


    public function actionTest(){
        $trans = Word::matchName('n. (Such)人名；(英)萨奇；(德)祖赫');
        var_dump($trans);
    }

    public function actionFix(){

    }

}
